package com.headStorm.concurrent.manyThread;

/**
 * @author zhangqq
 * @create 2021-07-21 15:57
 **/
public class SingleTon {
    private static volatile SingleTon singleTon = null;

    private SingleTon(){

    }

    public static SingleTon getSingleTon(){
        if(singleTon == null){
            singleTon = new SingleTon();
        }
        return  singleTon;
    }
}
